<template>
  <div id="top-header">

    <div class="header-left-decoration">

    </div>

    <div class="header-right-decoration">

      <div>
          <el-button type="text" class="button_style" @click="goMain">管理平台</el-button>
          <screenfull id="screenfull" class="right-menu-item hover-effect" />
      </div>
    </div>

    <div class="center-title">舆情直播</div>
  </div>
</template>

<script>
  import Screenfull from '@/components/Screenfull'
export default {
  components: {
    Screenfull
  },

  name: 'TopHeaderV3',
  created() {

  },
  methods:{
    goMain(){
      this.$router.push({ path:"/" }).catch(()=>{});
    },

  }
}
</script>

<style lang="less" scoped>
#top-header {
  position: relative;
  width: 100%;
  height: 80px;
  display: flex;
  padding-top: 15px;
  justify-content: space-between;
  /*flex-shrink: 0;*/

  .center-title {
    position: absolute;
    font-size: 30px;
    font-weight: bold;
    left: 50%;
    top: 30px;
    transform: translateX(-50%);
  }


  .header-left-decoration  {
    width: 50%;
    height: 61.5px;
    background-image: url("../../../assets/images/datav/head_left.png");
    background-size: 100% 100%;
  }
  .header-right-decoration {
    text-align: right;
    padding-right: 40px;
    position: relative;
    width: 50%;
    height: 60px;
    background-image: url("../../../assets/images/datav/head_right.png");
    background-size: 100% 100%;
  }

  .button_style{
    margin-top: 20px;
    font-size: 16px;
    color: #00CCFF;
  }
  .right-menu-item {
    display: inline-block;
    padding: 0 8px;
    height: 100%;
    font-size: 16px;
    color: #00CCFF;
    vertical-align: text-bottom;

    &.hover-effect {
      cursor: pointer;
      transition: background .3s;

      &:hover {
        background: rgba(0, 0, 0, .025)
      }
    }
  }

}
</style>
